package system

import (
	"gin-admin/handler"
	"gin-admin/middleware"

	"github.com/gin-gonic/gin"
)

func RegisterUserRoleRoutes(group *gin.RouterGroup) {
	userRoleGroup := group.Group("/user_role")
	handlerApp := handler.NewHandlerApp(nil)
	userRoleGroup.Use(middleware.AuthorizationMiddleware())
	{
		userRoleGroup.POST("/create", handlerApp.V1App.UserRoleHandler.CreateUserRoleHandler)
		userRoleGroup.DELETE("/delete", handlerApp.V1App.UserRoleHandler.DeleteUserRoleHandler)
		userRoleGroup.PUT("/modify", handlerApp.V1App.UserRoleHandler.ModifyUserRoleHandler)
		userRoleGroup.GET("/info", handlerApp.V1App.UserRoleHandler.GetUserRoleInfoHandler)
		userRoleGroup.GET("/list", handlerApp.V1App.UserRoleHandler.GetUserRoleListHandler)
	}
}
